% collect data
xdata = cat(1,invarx(graymask==1),invarx(whitemask==1));
ydata = cat(1,invary(graymask==1),invary(whitemask==1));

bootpars.weights = ones(size(xdata));